package com.sanbi.erp.db.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sanbi.erp.db.dao.SystemDictionaryMapper;
import com.sanbi.erp.db.domain.SystemDictionary;

import java.util.List;

@Service
public class SystemDictionaryService{

    @Resource
    private SystemDictionaryMapper systemDictionaryMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return systemDictionaryMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(SystemDictionary record) {
        return systemDictionaryMapper.insert(record);
    }

    
    public int insertSelective(SystemDictionary record) {
        return systemDictionaryMapper.insertSelective(record);
    }

    
    public SystemDictionary selectByPrimaryKey(Integer id) {
        return systemDictionaryMapper.selectByPrimaryKey(id);
    }

    /**
     * 获取费率，最小提现手续费，最小提现金额
     * @return
     */
    public List<SystemDictionary> selectByMinimum() {
        return systemDictionaryMapper.selectByMinimum();
    }

    /**
     * 获取最小提现金额
     * @return
     */
    public SystemDictionary selectByMinimumTwo() {
        return systemDictionaryMapper.selectByMinimumTwo();
    }

    /**
     * 查询所有退款/退货信息
     */
    public List<SystemDictionary> getRefundMessage(String group) {
        return systemDictionaryMapper.getRefundMessage(group);
    }

    
    public int updateByPrimaryKeySelective(SystemDictionary record) {
        return systemDictionaryMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(SystemDictionary record) {
        return systemDictionaryMapper.updateByPrimaryKey(record);
    }

}
